package com.bafa.front.presentationbeans;

import java.util.TreeSet;

import com.bafa.objects.Match;
import com.bafa.services.RetrieveServices;

public class RoundListBean {

	private TreeSet rounds = new TreeSet();

	public TreeSet getRounds() {
		return rounds;
	}

	public void setRounds(TreeSet matches) {
		this.rounds = matches;
	}
	
	
	public RoundListBean(Integer[] matches){
		for(int i=0;i<matches.length;i++){
			Match match = RetrieveServices.getMatch(matches[i]);
			
		}
	}
	
	public RoundBean[] matches(){
		return (RoundBean[])rounds.toArray(new RoundBean[rounds.size()]);
	}
	
}
